The enforce_dom0_cpus test sets the number of vcpus for the Dom0 and
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 19 May 2006 15:21:43 +0000 (16:21 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 19 May 2006 15:21:43 +0000 (16:21 +0100)
commitddc7a4667e2ef5f7986d3eac66455d4e470c3a6c
tree0bf17f5e2f56c05fd347849d3062be01afe4f4ad
parente1b53df502092ecbb66e4678c1d81dd9cbcc9404
The enforce_dom0_cpus test sets the number of vcpus for the Dom0 and
checks to see if they have been set correctly. We found that on
multi-proc systems, it takes a certain amount of time for the number of
vcpus to change.

This patch checks the number of vcpus inside a loop until it is correct
or 20 seconds elapse, whichever happens first. If after 20 seconds the
number of vcpus is not changed correctly, an error is raised.

Signed-off-by: Rajagopalan Subrahmanian <raj.subrahmanian@unisys.com>
tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py